'use strict';
let fs = require("fs");
fs.stat("test.txt",function (err, stats) {
    if (err) {
        console.log(err);
    } else {
        console.log("isFile", stats.isFile());
        console.log("isDirectory", stats.isDirectory());
        if (stats.isFile()) {
            console.log("size", stats.size);
            console.log("birthTime", stats.birthtime);
            console.log("modifyTime", stats.mtime);
        }
    }
})